﻿//-----------------------------------------------------------------------
// <copyright file="ExternalFormulaType.cs" company="tuliprules.org">
//     Copyright (c) 2011 tuplelister, tuliprules.org.
// </copyright>
// <summary>This is the ExternalFormulaType class.</summary>
//-----------------------------------------------------------------------
namespace Tulip.Rules.Models.Rif.Prd
{
    using System;
    using System.ComponentModel;
    using System.Xml.Serialization;

    /// <summary>
    /// Represents the External-FORMULA type.
    /// </summary>
    [Serializable]
    [DesignerCategory(@"code")]
    [XmlType(TypeName = "External-FORMULA.type", Namespace = "http://www.w3.org/2007/rif#")]
    public class ExternalFormulaType : IRifPrdElement
    {
        /// <summary>
        /// The content field.
        /// </summary>
        [EditorBrowsable(EditorBrowsableState.Never)]
        private ContentFormulaType contentField;

        /// <summary>
        /// Gets or sets a content role, containing an Atom, for predicates, 
        /// or Expr, for functions.
        /// </summary>
        [XmlElement("content", Order = 0)]
        public ContentFormulaType Content
        {
            get
            {
                return this.contentField;
            }

            set
            {
                this.contentField = value;
            }
        }
    }
}